﻿import java.util.Scanner;

public class Homework1 {
    public static void main(String[] args) {
        System.out.println("请输入年月日信息(格式为2020-08-03):");
        Scanner sc = new Scanner(System.in);
        String[] date = sc.next().split("-");
        int days = 0;
        int[] months;
        if(Integer.valueOf(date[0]) % 4 == 0){
            months = new int[]{31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30};
        }else{
            months = new int[]{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30};
        }
        for(int i=0; i < Integer.valueOf(date[1]) - 1; i++){
            days += months[i];
        }
        System.out.println("这是一年中的第" + (days + Integer.valueOf(date[2])) + "天");

    }
}
